<?php 
	@session_start();
    include_once("../global.php");
    if(!isset($_SESSION['id'])) {
        exit;
    }
    $id = $_SESSION['id'];
    $re = mysql_query("SELECT * FROM vt_register WHERE id=$id");
    $rows = mysql_fetch_array($re)
        
    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="../style/reset.css" />
<link rel="stylesheet" href="../style/text.css" />
<link rel="stylesheet" href="../style/960_24_col.css" />
<link rel="stylesheet" href="../style/style.css" />
<link rel="stylesheet" href="../style/users.css" />

<link rel="shortcut icon" href="../img/logo.png"/>

<!--colorbox-->
	<link media="screen" rel="stylesheet" href="../colorbox/colorbox.css" />
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
	<script src="../colorbox/jquery.colorbox.js"></script>
	<script>
		$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$("a[rel='example1']").colorbox();
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
		});        
	</script>
	<script>
		function openColorBox(lin)
		{
			$.colorbox({title: '',width:'100%',height:'100%', href:lin, iframe:true});
		}
	</script>
<!--end-->
<title>Bidbiz || Home</title>
</head>
<body>
    
<div id="container">
	<div id="header">
	    <a href="index.php" title="Home" alt="Bidbiz's Logo"><div id="logo"></div></a>
        <div id="searchform">
  <form>
        	<input type="text" name="search" class="textInput" value="Keywords" onclick="clickclear(this, 'Keywords')" onblur="clickrecall(this, 'Keywords')"/>
        	<input type="submit" class="textSubmit" name="submit" value="Search"> 
          </form>
        </div>
    </div> <!-- End Header -->
    
    <div class="container_24">
    	<div id="top_nav">
            <div id="nav" class="grid_18 suffix_2">
                <ul> 
                    <li><a href="../index.php"> Trang Chủ </a></li>
                    <li><span class="seperator"></span></li>
                    <li><a href="../user_control.php" title="Két của bạn">Két Của Bạn</a></li>
                    <li><span class="seperator"></span></li>
                    <li><a href="bid.php" title="Ðấu Trường">Ðấu Trường</a></li>
                    <li><span class="seperator"></span></li>            
                    <li><a href="#" title="">Tin Tức Sự Kiện</a></li>
                    <li><span class="seperator"></span></li>            
                    <li><a href="#" title="">Hướng Dẫn Chơi</a></li>
                    <li><span class="seperator"></span></li>            
                    <li><a href="#" title="">Cửa hàng liên kết</a></li>
                    <li><span class="seperator"></span></li>            
                    <li><a href="#" title="">Đăng bán</a></li>
   
                </ul>
            </div>
            <div class="grid_4">
                <div class="login" id="login">
                    Xin chào, <a href="users_info.php"> <i> <?php if(isset($_SESSION['email'])) echo $_SESSION['name']; ?> </i></a>  |  <a href="users_logout.php"> <b>Đăng xuất </b></a>             
                </div>
            </div>
        </div>             
	</div> <!-- End Top navigation -->
    
    
<div class="clear"></div>

    	<div id="nav_nd" class="grid_4">
            <ul>
                <li><a title="">Avatar của bạn</a></li> <br /> 
                <div style="height: 150px;width: 150px;">
                    <?php
                        $p = '../images/avatar/';
                        if($rows['avatar']==''){ ?>
                            <img src="<?php echo $p."no-image.jpg"?>" style="height: 150px; width: 150px;" />
                        <?php 
                        }else { ?>
                            <img src="<?php echo $p.$rows['avatar']?>" style="height: 150px; width: 150px;" />
                            
                        <?php 
                        }
                    ?>
                </div>
                <li><span class="sep"><hr/></span></li>
                <li><a href="users_index.php?page=changeavatar" title="">Thay đổi avatar</a></li>
                <li><span class="sep"><hr/></span></li>
                <li><a href="users_index.php?page=changeinfo" title="">Ðổi thông tin cá nhân</a></li>
                <li><span class="sep"><hr/></span></li>
        	</ul>
        </div>

    	
<div>
            <?php switch($_GET['page']) 
				{
				case "changeavatar":
					include_once("users_chavatar.php");
				 	break; 
					case "changeinfo":
					include_once("users_info.php");
				 	break;
				default: 
					include_once("content.php");
				}?>
</div>
        		           
<div class="clear"></div>
		<div id="footer">
        	<hr/>
            <div class="grid_15">
            	<a href="#" title="">About BIDBIZ</a> | 
                <a href="#" title="">Security Center</a> | 
                <a href="#" title="">Buyer Tools</a> | 
                <a href="#" title="">Policies</a> | 
                <a href="#" title="">Stores</a> | 
                <a href="#" title="">Site Map</a> | 
                <a href="#" title="">BIDBIZ official time</a> | 
                <a href="#" title="">Tell us what you think</a>  
			</div>
            <div class="grid_8 prefix_1" style="text-align:right">Copyright © 2011 Activius Corporation. All rights reserved. </div>
        </div> <!-- End Footer -->
                
	</div> <!-- End Container_24 -->
		 
		
</div> <!-- End Contain -->
        

</body>
</html>